package com.relax.mybatis.encrypt.util;

import java.security.Key;

import javax.crypto.Cipher;

/**
 * @author relax
 * @date 2022/07/05
 * @desc Cipher工具类
 */
public class CipherUtil {

    public static Cipher create(int paramInt, Key paramKey) throws Exception {
        Cipher cipher = Cipher.getInstance("RSA");
        cipher.init(paramInt, paramKey);
        return cipher;
    }

}
